<?php session_start();

require_once("../config/sina_config.php");
require_once("saetv2.ex.class.php");

function sina_login()
{
	$_SESSION['callback_count'] = 1;
	
	$sae_obj = new SaeTOAuthV2(WB_AKEY, WB_SKEY);
	$login_url = $sae_obj->getAuthorizeURL(WB_CALLBACK_URL);
	
	header("Location:".$login_url);
}

sina_login();
?>